An efficient analytical form for the period-reactivity relation of beryllium and heavy-water moderated reactors