A relativistic description of the electromagnetic form factor of the deuteron