Junction equations for two spherically symmetric spacetimes and the distributional method