Estimation of polymer compatibility from molecular mechanics calculations