Photopolymerizable liquid encapsulants for microelectronic devices