Direct printing of functional 3D objects using polymerization-induced phase separation