3D Structure Prediction of Atomic Systems with Flow-based Direct Preference Optimization