Riley homers lift Raiders over Patriots