Optical solitons due to quadratic nonlinearities: from basic physics to futuristic applications