What influenced the song, written by Ne-Yo, from Rihanna's second studio album?