Twisted Kronecker series and periods of modular forms on $Γ_0(N)$