R- and J-band photometry of Comets 2P/Encke and 9P/Tempel 1