Characterization and representation of the lower semicontinuous envelope of the elastica functional