BUG: type conversion in spectral_embedding

Under some version of numpy, inplace operations with different types
lead to errors rather than implicit casting.

Fixes #2153