A programmable luminaire system may comprise a programmable luminaire comprising an optic defining an optical chamber, a light source comprising a plurality of light-emitting elements, a controller operably coupled with the plurality of light-emitting elements, and an electrical connector electrically coupled with the controller. The device includes a substrate including GaN, a two dimensional electron gas inducing layer on the substrate, and a lateral transistor on the 2DEG inducing layer. Due to the molecular size dependence of the entropic trapping effect, separation of molecules may be achieved.