Serena Williams beats Sharapova for Olympic gold