the connection between thoughts and emotions