Unique determination of model coronal magnetic fields using photospheric observations