Fabrication of force sensors based on two-dimensional photonic crystal technology