In situ friction and wear measurements in integrated polysilicon mechanisms