MEMS pressure sensor with thermal compensation