Thermodynamic equilibrium and stability of liquid films and droplets on fibers