Flux calibration of broad-band far-infrared and submillimetre photometric instruments: theory and application to Herschel-SPIRE