Roger Federer has knee surgery, misses Rotterdam and Dubai tournaments