Determination of three‐dimensional structure of coronal streamers and relationship to the solar magnetic field