Yang-Mills Energy Bound by the Second Chern Number