Perron’s solutions for two-phase free boundary problems with distributed sources