Thermal cycling and surface passivation of micromachined devices for PCR