Indirect techniques in nuclear astrophysics