Effects of phase transitions in devices actuated by the electromagnetic vacuum force