PDE-Foam - a probability-density estimation method using self-adapting phase-space binning