A novel strategy to simultaneously electrochemically prepare and functionalize graphene with a multifunctional flame retardant