Hosmer homers, drives in four for Royals in loss