Calculation of electro optical parameters - a new approach. Application to nitromethane