Probing the relationship between structural and optical properties of Si-doped AlN