Electromagnetic design of the RF cavity beam position monitor for the LCLS