Coronagraph design with the electric field conjugation algorithm