Roger Federer made short work of big-serving Australian Sam Groth to win their second round match in straight sets.