Domain configurations in ferroelectric PbTiO3 thin films: The influence of substrate and film thickness