Bernat, Ignasi, Universitat de Girona