Methods for the covalent attachment of nucleic acids and their derivatives to proteins