On the deformed shape of an elastic cable under general load conditions