A theory for the design of thin heat flux meters