Specialization and risk sharing in European regions