A superdense star model as charged analogue of Schwarzschild’s interior solution