Two companies based in Northamptonshire have been fined after a worker died following a fall through a roof.