Highly efficient conversion of laser energy to hard x-rays in high-intensity laser–solid simulations