The ‘Edison of India’ studied science from magazines