Surface and interfacial tensions from the profile of a sessile drop