Inverse method to engineer uniform-intensity focal fields with arbitrary shape.