Approximate pattern matching on elastic-degenerate text