Modelling of implantable sensor packaging based on biocompatible polymers