Investigations on structural, electronic and optical properties of ZnO in two-dimensional configurations by first-principles calculations