Cd(OH)2 and CdO: structural, optical, electron density distribution analysis with antibacterial assay