Signal Detection and Modulation Classification Based on Distribution Tests