Preparation of enzyme-in-polymer composites with high activity and stability