Taylor Swift confirms she wrote Calvin Harris and Rihanna’s hit This Is What You Came For