Ab initio modeling of layered materials with the CRYSTAL code: an overview