European finance ministers agree rules for bust banks