Ab-initio calculation of elastic constants of crystalline systems with the CRYSTAL code