Phosphonates or phosphinates containing nitrogen atoms