Mode competition in galloping of a square cylinder at low Reynolds number