A framework for variational inference and data assimilation of soil biogeochemical models using state space approximations and normalizing flows