Correlation between electrical and magnetic properties of phase-separated manganites studied with a general effective medium model