crypto.hash XOF hash functions outputLength option

What is the problem this feature will solve?

This is follow up to #51044 (comment) (cc @tniessen @joyeecheung)

We should add the ability to define outputLength for XOF hash functions in crypto.hash so that it's on par with the crypto.createHash API

What is the feature you are proposing to solve the problem?

Being able to use e.g. shake128 and shake256 with varying output lengths using crypto.hash

What alternatives have you considered?

No response