Formulation of Maxwell's equations in special relativity