Neural networks as tools to solve problems in physics and chemistry