Federer pulls out of Olympics, rest of season due to knee issue