Conformational flexibility of RecA protein filament: Transitions between compressed and stretched states