Nanoscale investigations of switching properties and piezoelectric activity in ferroelectric thin films using piezoresponse force microscopy