Fermi surface of layered compounds and bulk charge density wave systems