Magnetoelectric properties of multiferroic CuCrO2 studied by means of ab initio calculations and Monte Carlo simulations