Energy and tension of films and Plateau borders in a foam