Relativistic self‐consistent‐field methods for molecules. I. Dirac–Fock multiconfiguration self‐consistent‐field theory for molecules and a single‐determinant Dirac–Fock self‐consistent‐field method for closed‐shell linear molecules