Correlation between structure and photoluminescence properties in InGaN epilayers with thicknesses below and above critical thickness