Jayawardene smashes record century in easy Sri Lanka win