Theoretical investigations on inorganic systems and aggregates by density functional methods