pub fn write_frames_extxyz<W: Write>( w: &mut W, frames: &[ConFrame], energy_key: &str, ) -> Result<()>