Evaluation of the electron density in a general plane: application to 4,4'-dichlorodiphenylsulfone