A Radon–Nikodym type theorem for forms