XRD and TEM studies of as-grown MgB2 thin films deposited on r- and c-plane sapphire substrates