Modification of Bicyclic Phosphonates Based on Resorcinols and Its Derivatives via the Mannich Reaction