Resonant Andreev Spectroscopy in normal-Metal/thin-Ferromagnet/Superconductor Device: Theory and Application