Roger Federer eased into the quarter-finals at Indian Wells with a straight sets win over Kyle Edmund.