Quasi-static analysis of electrooptic modulators by the method of lines