Guardiola 'knew Milan's quality'