Optimal design of artificial magnetic conductors including angular response