Closed-form max-min power control for some cellular and cell-free massive MIMO networks