Large Deflections of Beams with an Unknown Length of the Reference Configuration