Accurate ab initio determination of magnetic interactions and hopping integrals in La2−xSrxCuO4 systems