Precision measurement of structure function ratios for6Li,12C and40Ca