Harmonic mappings with partially free boundary