Jankovic battles through to Mallorca quarterfinals, Bouchard beaten