The physical principles of the ERANOS neutronic deterministic code and its application to the LFR and VENUS-F critical cores