edd expression density diagnostics; initial code from Bioconductor 2.8, slightly modified to run in R 4.2