Founded in 963 , Luxembourg became a grand duchy in 1815 and an independent state under the Netherlands .