Study of the φ decays into π0π0γ and ηπ0γ final states