A silicon-polymer heterostructure for sensor applications