Deposition of biopolymer films on micromechanical sensors