What were similarities between romanticism and transcendentalism?