On the structure of bidegreed graphs with minimal spectral radius