Towards understanding retrosynthesis by energy-based models