Smartphones for control and detection of rapid diagnostic tests