Ultrathin 3-D-printed films convert energy of one form into another