Sol-gel encapsulation of lactate dehydrogenase for optical sensing of L-lactate.