The stellar mass functions of the CLASH-VLT clusters MACS J1206-0847 and Abell 209