Magnetization distribution in magneto-optical medium on patterned substrate