Experimental observation of attractive and repulsive thermal forces on microcantilevers