Inverse problem for the retarded field of an arbitrary moving charge