X-ray opacity measurements in mid-Z dense plasmas with a new target design of indirect heating