Flame retardant epoxy polymers based on all phosphorus-containing components