Two-dimensional germanane and germanane ribbons: density functional calculation of structural, electronic, optical and transport properties and the role of defects