A vote in eastern Germany has given fresh momentum to hard-right parties hoping to win elections across Europe next year, analysts said.