ProofOptimizer: Training Language Models to Simplify Proofs without Human Demonstrations