Dyestuffs containing phosphonic or phosphinic acid groups and derivatives