Rizwan steers Pakistan to 287-8 against Sri Lanka