Lyot stop optimization