Phase analysis for focus plane detection in digital inline holography: application to three-dimensional locations of drops and threads in a beads-on-a-string structure