Real Madrid fend off Napoli to advance in Champions League